package leecode

import "strings"

func mostWordsFound(sentences []string) (result int) {
	for i := 0; i < len(sentences); i++ {
		//统计空格数
		arr := strings.Split(sentences[i], " ")
		result = max(result, len(arr))
	}
	return
}
